<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common-app/taglibs.jsp"%>
<%@ taglib uri="/WEB-INF/iristaglib.tld" prefix="iris"%>
<!DOCTYPE html>
<html>
<head>
<title>项目审核</title>
<%@ include file="/common/meta.jsp"%>

<script type="text/javascript" src="${res}/js/opinion/opinion.js"></script>
<script type="text/javascript" src="${res}/js/proposal/irisPrpPrepare.js"></script> 
<script type="text/javascript" src="${res}/js/validate/irisvalidator.js"></script>
<script type="text/javascript">
var prcWin = new progressWin("${res}");//初始化遮罩层

$(document).ready(function(){
	$("#submit").click(function(){
		var chk = $("#submit_date").val();
		if(chk==null||chk==''){
			scmWarn("证书办理日期不能为空！",null,2000);
			return false;
		}
		if(!irisValDateByObjPure($("#submit_date"))){
			scmWarn("证书办理日期格式不正确！",null,2000);
			return false;
		}
		var options = {
				beforeSubmit : function() {
					$("#submit").attr("disabled",true);
					prcWin.openWin();//打开遮罩层
				}, // 表单提交前的回调函数
				success : function(msg) {
						scmSuccess("操作成功",null,2000);
						prcWin.closeWin();
						parent.irisGrid.getGridDom().jqGrid("refresh",0);//0是本页1是首页
						parent.currefresh=false;
						window.setTimeout("parent.tb_remove2()", 2000);
				},// 表单成功提交后的回调函数
				error : function() {
					scmError("操作失败,请联系系统管理员");
					prcWin.closeWin();
				},
				url: "${ctx}/appProject/do-print"
			};
		$("#mainForm").ajaxSubmit(options);	
	});
});
</script>
</head>
<body>
 <form method="post" id="mainForm">
	<input type="hidden" id="prpCodes" name="prpCodes" value="${prpCodes}" />
		
      <div align="center">
		<table>
	   	<col width="40%"/>
	   	<col width="60%"/>
	  		<tr>
				<td align="right"><span class="color_red">*</span>证书办理日期：</td>
				<td>
					<cpt:date id="submit_date" name="submit_date" value="${sercverSysDate1}" className="input_text required date" label="证书办理日期"  size="20"></cpt:date> 
				</td>  		
	  		</tr>
	  	</table></div><br/>
	  	<div style="text-align: center;">
	  	<input type="button" class="button_01" value="确认" id="submit"/>
      	&nbsp;<input type="button" class="button_01" value="返回" id="back" onclick="parent.tb_remove();"/>
	</div>
	</form>   
</body>
</html>